import request from '@/utils/request';

export function listReport(keyword) {
    return request({
        url: `/bireport/listReport.action?keyword=${keyword}`,
        method: "get"
    });
}

export function getReport(pageId) {
    return request({
        url: `/bireport/getReport.action?pageId=${pageId}`,
        method: "get"
    });
}

export function saveReport(info) {
    return request({
        url: `/bireport/saveReport.action`,
        method: "POST",
        data: info
    });
}

export function deleteReport(id) {
    return request({
        url: `/bireport/deleteReport.action?id=${id}`,
        method: "get"
    });
}

export function renameReport(info) {
    return request({
        url: `/bireport/renameReport.action`,
        method: "get",
        data: info
    });
}


